<script setup>
import { provide, ref } from "vue";
import Son from "./components/Son.vue";
const money = ref(10000)
const add = () => {
    money.value += 1000
}
provide('money', money)
provide('add', add)

</script>

<template>
    <h1>我是父组件</h1>
    <Son></Son>
</template>
